﻿using Firefly.Framework.Windows;
using Firefly.Framework.Windows.ContentReaders;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

namespace Firefly.ContentPipeline.Windows
{
    [ContentTypeWriter]
    public class FontContentWriter : ContentTypeWriter<Font>
    {
        protected override void Write(ContentWriter output, Font value)
        {
            output.Write(value.AssetName);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return typeof(FontContentReader).AssemblyQualifiedName;
        }
    }
}
